//(function () {

let config = {
    difficulties: {
        easy: {
            INIT_SCORE: 120,
            // Initial score is 120;
            HERO_LOAD_CAPACITY: 50,
            // Missile load capacity for the hero is 50;
            ENEMY_COUNT_MAX: 10,
            // No more than 10 enemy fighters on the screen;
            ENEMY_MISSILE_COUNT_MAX: 1,
            // No more than 1 enemy missile on the screen;
            ENERGY_CAN_COUNT_MAX: 3,
            // No more than 3 energy cans on the screen;
            AMMO_BOX_COUNT_MAX: 3,
            // No more than 3 ammo boxes on the screen;
            COLLIDED_BY_ENEMY_COST_H: 10,
            // Collided by an enemy fighter lose 10% of healthiness;
            CATCH_ENERGY_CAN_GAIN_H: 10,
            // Catching an energy can gets 10% of healthiness;
            CATCH_AMMO_BOX_GAIN_M: 10,
            // Catching an ammo box gets 10 missiles;
            DESTROY_ENEMY_GAIN_S: 3,
            // Destroying an enemy fighter get 3 points of score;
            DESTROY_ENERGY_CAN_COST_S: 1,
            // Destroying an energy can loses 1 point of score;
            DESTROY_AMMO_BOX_COST_S: 1,
            // Destroying an ammo box loses 1 point of score;
            ESCAPING_OF_ENEMY_COST_S: 1,
            // 1 point of score lost for an enemy fighter escaping;
            SHOT_BY_ENEMY_COST_H: 5,
            // Shot by enemy missile loses 5% of healthiness;
        },
        medium: {
            INIT_SCORE: 80,
            // Initial score is 80;
            HERO_LOAD_CAPACITY: 30,
            // Missile load capacity for the hero is 30;
            ENEMY_COUNT_MAX: 20,
            // No more than 20 enemy fighters on the screen;
            ENEMY_MISSILE_COUNT_MAX: 3,
            // No more than 3 enemy missiles on the screen;
            ENERGY_CAN_COUNT_MAX: 2,
            // No more than 2 energy cans on the screen;
            AMMO_BOX_COUNT_MAX: 2,
            // No more than 2 ammo boxes on the screen;
            COLLIDED_BY_ENEMY_COST_H: 20,
            // Collided by an enemy fighter lose 20% of healthiness;
            CATCH_ENERGY_CAN_GAIN_H: 10,
            // Catching an energy can gets 10% of healthiness;
            CATCH_AMMO_BOX_GAIN_M: 8,
            // Catching an ammo box gets 8 missiles;
            DESTROY_ENEMY_GAIN_S: 2,
            // Destroying an enemy fighter get 2 points of score;
            DESTROY_ENERGY_CAN_COST_S: 2,
            // Destroying an energy can loses 2 points of score;
            DESTROY_AMMO_BOX_COST_S: 2,
            // Destroying an ammo box loses 2 points of score;
            ESCAPING_OF_ENEMY_COST_S: 1,
            // 1 point of score lost for an enemy fighter escaping;
            SHOT_BY_ENEMY_COST_H: 10,
            // Shot by enemy missile loses 10% of healthiness;
        },
        hard: {
            INIT_SCORE: 50,
            // Initial score is 50;
            HERO_LOAD_CAPACITY: 20,
            // Missile load capacity for the hero is 20;
            ENEMY_COUNT_MAX: 20,
            // No more than 20 enemy fighters on the screen;
            ENEMY_MISSILE_COUNT_MAX: 5,
            // No more than 5 enemy missiles on the screen;
            ENERGY_CAN_COUNT_MAX: 2,
            // No more than 2 energy cans on the screen;
            AMMO_BOX_COUNT_MAX: 2,
            // No more than 2 ammo boxes on the screen;
            COLLIDED_BY_ENEMY_COST_H: 30,
            // Collided by an enemy fighter lose 30% of healthiness;
            CATCH_ENERGY_CAN_GAIN_H: 5,
            // Catching an energy can gets 5% of healthiness;
            CATCH_AMMO_BOX_GAIN_M: 5,
            // Catching an ammo box gets 5 missiles;
            DESTROY_ENEMY_GAIN_S: 1,
            // Destroying an enemy fighter get 1 point of score;
            DESTROY_ENERGY_CAN_COST_S: 3,
            // Destroying an energy can loses 3 points of score;
            DESTROY_AMMO_BOX_COST_S: 3,
            // Destroying an ammo box loses 3 points of score;
            ESCAPING_OF_ENEMY_COST_S: 1,
            // 1 point of score lost for an enemy fighter escaping;
            SHOT_BY_ENEMY_COST_H: 15,
            // Shot by enemy missile loses 15% of healthiness;
        },
    },
    field:{  // recommended battle space size
        width: 1200,
        height: 800
    }
};


//})();
